package com.quad.innovators.salesease.converter;

import com.quad.innovators.salesease.model.entity.task.TaskAddress;
import com.quad.innovators.salesease.model.form.task.TaskAddressForm;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * @author : shanshan.li
 * @createTime : 2024/12/9 13:53
 * @Version : 1.0 
 */
@Mapper(componentModel = "spring")
public interface TaskAddressConverter {

    TaskAddressForm toForm(TaskAddress entity);

    @InheritInverseConfiguration(name = "toForm")
    TaskAddress toEntity(TaskAddressForm form);
}
